﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using StockAnomalyDetector;
using System.IO;
using ReadWriteCsv;

namespace StockAnomalyDetector
{
    public partial class Form1 : Form
    {


        public Form1()
        {
            InitializeComponent();
            ProgressBar.CheckForIllegalCrossThreadCalls = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Hunter hunter = new Hunter(progressBar1);
            hunter.Activate();
        }
        
        // 测试用
        private void button2_Click(object sender, EventArgs e)
        {
            Foo f = new Foo(progressBar1, progressBar2);
            f.StartBackgroundTask();
        }
    }
}
